BOX_SIZE = 20  # 单元格大小 像素
MAX_X_BOX = 45  # x 轴单元格个数
MAX_Y_BOX = round(MAX_X_BOX * 9 / 16)  # y 轴单元格个数
SCREEN_W, SCREEN_H = MAX_X_BOX * BOX_SIZE, MAX_Y_BOX * BOX_SIZE  # 屏幕宽高
CURSOR_W, CURSOR_H = 360, 375  # 指针素材宽高
X_LIMIT, Y_LIMIT = SCREEN_W - BOX_SIZE, SCREEN_W - BOX_SIZE  # 横纵坐标限制 用于判断出界
SCREEN_SIZE = (SCREEN_W, SCREEN_H)
BG_MULTI = 1.5
CS_MULTI = 24 / CURSOR_W
SYS_FONT = "方正粗黑宋简体"

# 游戏设置
NO_KEY = 0
UP = 1  #游戏方向键，1234代表上下左右，0为空格
DOWN = 2
LEFT = 3
RIGHT = 4
SPACE = 5

#服务器参数
SERVER_IP = "192.168.190.1"  #服务器IPV4地址
SERVER_PORT = 5555  #服务器端口号

#颜色
SCREEN_COLOR = (66, 18, 87)  #背景颜色
FOOD_COLOR = (219, 57, 57)  #食物颜色
MY_COLOR = (158, 252, 76)  #蛇的颜色
ENEMY_COLOR = (171, 171, 171)

# 客户端遍历
MY_ID = 0